package net.zjitc.controller;

import net.zjitc.servlet.annotation.ResustMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by rj1502 on 2017/11/1.
 */
public class ProductController {
    @ResustMapping(url = "/index")
    public void add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setAttribute("msg","测试成功");
        request.getRequestDispatcher("test.jsp").forward(request,response);
    }


}
